package com.sun.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sun.reggie.entity.Dish;
import com.sun.reggie.entity.dto.DishDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    Page<DishDto> getDishDtoList(Page<DishDto> page, String name);

    Page<DishDto> pageRecycleDishDtoList(Page<DishDto> page, String name);
    boolean updateDish(@Param("id") Long id);

    boolean updateDishFlavor(@Param("id") Long id);


}